﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace CIS.Server.EFCore.Migrations
{
    /// <inheritdoc />
    public partial class add_jobs : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Jobs",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "TEXT", nullable: false),
                    LotId = table.Column<string>(type: "TEXT", nullable: true),
                    ProductSize = table.Column<string>(type: "TEXT", nullable: true),
                    JobId = table.Column<string>(type: "TEXT", nullable: true),
                    ProcessingFlag = table.Column<string>(type: "TEXT", nullable: true),
                    GlassType = table.Column<string>(type: "TEXT", nullable: true),
                    DummyType = table.Column<string>(type: "TEXT", nullable: true),
                    CassetteSequenceNo = table.Column<int>(type: "INTEGER", nullable: false),
                    SlotSequenceNo = table.Column<int>(type: "INTEGER", nullable: false),
                    GlassCode = table.Column<string>(type: "TEXT", nullable: true),
                    PPID = table.Column<string>(type: "TEXT", nullable: true),
                    ProductCategory = table.Column<string>(type: "TEXT", nullable: true),
                    Judge = table.Column<string>(type: "TEXT", nullable: true),
                    Grade = table.Column<string>(type: "TEXT", nullable: true),
                    Status = table.Column<int>(type: "INTEGER", nullable: false),
                    TactTime = table.Column<float>(type: "REAL", nullable: true),
                    CycleTime = table.Column<float>(type: "REAL", nullable: true),
                    ProcessStartTime = table.Column<DateTime>(type: "TEXT", nullable: true),
                    ProcessEndTime = table.Column<DateTime>(type: "TEXT", nullable: true),
                    InPutPortId = table.Column<string>(type: "TEXT", nullable: true),
                    OutPutPortId = table.Column<string>(type: "TEXT", nullable: true),
                    OutPutCassetteId = table.Column<string>(type: "TEXT", nullable: true),
                    Position = table.Column<string>(type: "TEXT", nullable: true),
                    FromSlotNo = table.Column<string>(type: "TEXT", nullable: true),
                    SlotPositon = table.Column<int>(type: "INTEGER", nullable: true),
                    ProductType = table.Column<int>(type: "INTEGER", nullable: true),
                    ToSlotNo = table.Column<string>(type: "TEXT", nullable: true),
                    CurrentUnitPathNo = table.Column<int>(type: "INTEGER", nullable: false),
                    CurrentSlotNo = table.Column<int>(type: "INTEGER", nullable: false),
                    SlotState = table.Column<int>(type: "INTEGER", nullable: false),
                    Thickness = table.Column<string>(type: "TEXT", nullable: true),
                    WorkOrder = table.Column<string>(type: "TEXT", nullable: true),
                    CurrentDispatchStepNo = table.Column<int>(type: "INTEGER", nullable: false),
                    ProcessingInfo = table.Column<string>(type: "TEXT", nullable: true),
                    CreationTime = table.Column<DateTime>(type: "TEXT", nullable: true),
                    CreatorId = table.Column<string>(type: "TEXT", nullable: true),
                    LastModificationTime = table.Column<DateTime>(type: "TEXT", nullable: true),
                    LastModifierId = table.Column<string>(type: "TEXT", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Jobs", x => x.Id);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Jobs");
        }
    }
}
